#include <iostream>
#include <string>
#include <fstream>
using std::cout;
using std::endl;
using std::cerr;
using std::string;
using std::ifstream;

void test0(){
    ifstream ifs("test.cc");

    if(!ifs){
        cerr << "ifstream open file failed!" << endl;
        return;
    }

    string line;
    while(std::getline(ifs,line)){
        cout << line << endl;
    }

    ifs.close();
}

int main(int argc, char * argv[])
{
    test0();
    return 0;
}


